﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Datacollection
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //先启动登录窗体
            Userlogin loginForm = new Userlogin();
            if (loginForm.ShowDialog() == DialogResult.OK) 
            {
                // 登录成功后，运行主窗体Form1
                Application.Run(new Form1());
            }
        }
    }
}
